package demo;

public class demo03 {
    public static void main(String[] args){
        double i = 1;
        double sum = 0;
        while (i<=20){
            sum += 1/i;
            i++;
        }
        System.out.println(sum);

    }
}
